﻿@model IEnumerable<MCP.Data.CF_Entities.User>
@{
	ViewBag.Title = "Manage Users";
	Layout = "~/Views/Shared/AdminPanel.cshtml";
}
<h2>Manage users</h2>
@Html.ActionLink("Add new user", "AddUser")
<table>
	<tr>
		<th>User</th>
		<th>Actions</th>
	</tr>
	@{
		foreach (var user in Model)
		{
		<tr>
			<td>
				@user.Login
			</td>
			<td>
				<div class="adminpanel-manageusers-useractions">
					@Html.ActionLink("Edit", "EditUser")
					@Html.ActionLink("Delete", "DeleteUser")					
				</div>
			</td>
		</tr>
		}
	}
</table>
